package com.he.strategymodel.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConfigUtil {
    public static String getValue(String key) {
        Properties properties = new Properties();
        try {
            String name = Const.FILE;
            properties.load(new FileInputStream(name));
            return properties.getProperty(key);
        } catch (IOException e) {
            e.printStackTrace();
        }
        throw new AssertionError(Const.FILE+"中找不到该属性！");
    }

}
